This tutorial shows how to create Kotlin Application using Online Compiler (lacks functionality compared to other options)
This is a great way to test Kotlin Code snippets without having to install anything on the computer.
Code that is to be executed needs to be written inside main() function.
https://play.kotlinlang.org
Run
Code
//===========================================================================================================
// CLASS: Person
//===========================================================================================================
class Person {
fun sayHello() { println("Hello") }
}
//===========================================================================================================
// FUNCTION: main
//===========================================================================================================
fun main() {
var john = Person()
john.sayHello()
}
Output
Hello
https://play.kotlinlang.org